<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="moduleList" />
<script
	src="${staticPath}/lib/datetimepicker/0.0.11/js/bootstrap-datetimepicker.min.js"
	type="text/javascript"></script>
<script
	src="${staticPath}/lib/datetimepicker/0.0.11/js/locales/bootstrap-datetimepicker.zh-CN.js"
	type="text/javascript"></script>
<script type="text/javascript">
	$(document)
			.ready(
					function() {
						$(".o-a-form-date").datetimepicker({
							language : 'zh-CN',
							autoclose : true,
							minView : 2,
							todayBtn : 1,
							pickerPosition : "bottom-left"
						});
						$('#btnSelect').click(
								function() {
									window.open(
											'${contextPath}/statement/stm/error/getByStmError?'
													+ $('#errorStatementFrame')
															.serialize(),
											'_self');
								});
						parent.document.getElementById("errorStatementFrame").height = document.body.scrollHeight + 30;
					});
</script>

</head>
<body>
	<form id="errorStatementFrame" modelAttribute="stmError" method="post"
		class="form-inline" role="form">
	
		<div class="collapse row o-l-search-builder in"
			id="statement-search-builder">
			<div class="form-group col-sm-8">
				<div class="col-sm-4">
					<input id="supplierNo" name="supplierNo" placeholder="供应商编号"
						value="${stmError.supplierNo }" class="form-control text-center">
				</div>
		
				<div class="col-sm-6">
				<label for="inputEmail3" class="control-label">是否确认：</label>
					<ossp:radio dictType="IS_CONFIRMED" id="isConfirmed"
						name="isConfirmed"></ossp:radio>
				</div>
			</div>
		</div>
		<div class="o-l-chevron-down">
			<a href="#" class="btn btn-default" data-toggle="collapse"
				data-target="#statement-search-builder" id="chevronDownBtn"
				role="button"><span class="glyphicon glyphicon-chevron-up"></span></a>
		</div>

		<div class="o-l-action">
			<div class="form-group col-xs-4">
				<div class="input-group date o-a-form-date" data-date=""
					data-date-format="yyyy-mm-dd">
					<input class="form-control" type="text" name="createTime"
						value="<fmt:formatDate value="${stmError.createTime }" pattern="yyyy-MM-dd"/>"
						placeholder="销售日期" readonly /> <span class="input-group-addon"><i
						class="glyphicon glyphicon-calendar"></i></span>
				</div>
			</div>
			<div class="form-group col-xs-4">
				<div class="input-group date o-a-form-date" data-date=""
					data-date-format="yyyy-mm-dd">
					<input class="form-control" type="text" name="date"
						value="<fmt:formatDate value="${stmError.date }" pattern="yyyy-MM-dd"/>"
						placeholder="提交日期" readonly /> <span class="input-group-addon"><i
						class="glyphicon glyphicon-calendar"></i></span>
				</div>
			</div>
			<div class="form-group col-xs-4">
				<button type="button" id="btnSelect" role="button"
					class="btn btn-primary">查询</button>
			</div>

		</div>
	</form>
	<tags:message content="${message}" />
	<table class="table table-striped table-hover o-l-table" id="table1">
		<thead>
			<tr>
				<th>是否确认</th>
				<th>结算单号</th>
				<th>提报时间</th>
				<th>结算项目</th>
				<th>异常处理方案</th>

			</tr>
		</thead>
		<tbody>
			<c:forEach items="${list}" var="stmError">
				<tr
					data-herf="${contextPath}/statement/stm/error/view/${stmError.id}"
					data-target="_self">
					<td><ossp:value dictType="IS_CONFIRMED" key="${stmError.isConfirmed}"></ossp:value></td>
					<td><fmt:formatDate value="${stmError.createTime}"
							pattern="yyyy-MM-dd" /></td>
					<td><ossp:value dictType="ITEM" key="${stmError.item}"></ossp:value></td>
					<td>${stmError.exceptionHanding}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="o-l-page">
		<div class="col-sm-6">
			<ul class="pagination">
				<li class="disabled"><a href="javascript:">&#171; 上一页</a></li>
				<li class="disabled"><a href="#">1</a></li>
				<li class="disabled"><a href="#">下一页 &#187;</a></li>
			</ul>
		</div>
		<div class="col-sm-6">
			<span class="pull-right"> 到第<input
				class="form-control input-sm input-goto" type="text">页
				<button class="btn btn-sm btn-primary" role="button">go</button>
			</span>
		</div>
	</div>
	<script type="text/javascript" src="${staticPath}/js/list.js"></script>
</body>
</html>